package com.stlm2.dems.entity.base;

import com.stlm2.dems.entity.TiXianState;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by ZLQ on 2017/6/14.
 */
public class BaseTiXianShenQing implements Serializable {
    //主键
    private  int id;
    //状态
    private TiXianState state;
    //用户ID
    private int userId;
    //创建时间
    private Date createTime;
    //金额
    private BigDecimal money;
    //审核人
    private int handUserId;
    //银行卡ID
    private int cardId;
    //审核记录编码
    private String code;
    //审核时间
    private  Date handTime;
    //备注
    private String note;
    //银行卡卡号
    private String cardNum;
    //户名
    private String accountName;
    //开户行ID
    private int bankId;
    //手续费，金额的百分之1
    private BigDecimal factorage;
    //实际金额（扣除手续费后的）
    private BigDecimal actualMoney;
    //开户行
    private String kaihuhang;

    public String getKaihuhang() {
        return kaihuhang;
    }

    public void setKaihuhang(String kaihuhang) {
        this.kaihuhang = kaihuhang;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public TiXianState getState() {
        return state;
    }

    public void setState(TiXianState state) {
        this.state = state;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public int getHandUserId() {
        return handUserId;
    }

    public void setHandUserId(int handUserId) {
        this.handUserId = handUserId;
    }

    public int getCardId() {
        return cardId;
    }

    public void setCardId(int cardId) {
        this.cardId = cardId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Date getHandTime() {
        return handTime;
    }

    public void setHandTime(Date handTime) {
        this.handTime = handTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public int getBankId() {
        return bankId;
    }

    public void setBankId(int bankId) {
        this.bankId = bankId;
    }

    public BigDecimal getFactorage() {
        return factorage;
    }

    public void setFactorage(BigDecimal factorage) {
        this.factorage = factorage;
    }

    public BigDecimal getActualMoney() {
        return actualMoney;
    }

    public void setActualMoney(BigDecimal actualMoney) {
        this.actualMoney = actualMoney;
    }

    /**
     * 映射：提现状态
     */
    public Integer getStateValue() {
        return (state != null) ? state.getIntValue() : null;
    }

    public void setStateValue(Integer value) {
        if (value != null)
            this.state = TiXianState.getByIntValue(value);
    }
}
